import Vue from "vue"
import App from "@/App.vue"
import "@/registerServiceWorker"
import router from "@/router"
import store from "@/store"

// 导入全局错误监听
// import "@/error/index"

// 导入依赖
import "@/libraries/elementui"
import "@/libraries/vuescroll"
import "@/libraries/lodash"
import "@/libraries/dayjs"
import "@/libraries/dom-to-image"

// 导入样式
import "normalize.css"
import "animate.css"

// 导入路由权限控制
import "@/permission"

// 导入测试
import "@/test/index"

// 导入Electron.remote
import { getRemote } from "@/utils/electron"
Vue.prototype.$remote = getRemote()

// 阻止启动生产消息
Vue.config.productionTip = false

new Vue({
	router,
	store,
	render: h => h(App),
}).$mount("#app")
